package net.sourceforge.krama.html.child;

import net.sourceforge.krama.html.HTMLDiv;

public class HTMLPanel extends HTMLDiv{

	private String name;
	private String id;
	private String fonction;
	
	public String starDraw() {

		setNameWidget(name);
		setIdWidget(id);
		if(fonction != null)
			setOnClickWidget(fonction);
		return getStartWidget();
	}

	public String endDraw() {

		return getEndWidget();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public void addClick(String fonction) {
		// TODO Auto-generated method stub
		this.fonction = fonction;
	}
}
